﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReviewReply.aspx.cs" Inherits="CNVP.JShop.Web.Admin.ReviewReply" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="IE=7" http-equiv="X-UA-Compatible" />
    <link href="CSS/Edit.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../Scripts/common.js" type="text/javascript"></script>
    <script src="JS/Admin.js" type="text/javascript"></script>
     <script type="text/javascript">
         if(<%=id %>==0)
         {
             $(function () {
                 $("#btUp").click(function () {
                     var $txtAdminName = $("#txtAdminName");
                     if ($txtAdminName.val() == "") {
                         alert("请输入管理员账户！");
                         $txtAdminName.focus();
                         return false;
                     }
                     var $txtPwd1 = $("#txtPwd1");
                     if ($txtPwd1.val() == "") {
                         alert("请输入新密码！");
                         $txtPwd1.focus();
                         return false;
                     }
                     var $txtPwd2 = $("#txtPwd2");
                     if ($txtPwd2.val() == "") {
                         alert("请输入确认新密码！");
                         $txtPwd2.focus();
                         return false;
                     }
                     if ($txtPwd1.val() != $txtPwd2.val()) {
                         alert("新密码与确认新密码不相同！");
                         $txtPwd2.focus();
                         return false;
                     }
                     var $ddlRoleID=$("#ddlRoleID");
                     if ($ddlRoleID.val() == "0") {
                         alert("请选择所属角色！");
                         $ddlRoleID.focus();
                         return false;
                     }
                 });
             })

             function IsAdminName() {
                 if (IsUserNameExists($("#txtAdminName").val())) {
                     $("#AdminName").html("<font color='#ff0000'>该管理员账户已存在，请重新填写．</font>");
                 }
                 else {
                     $("#AdminName").html("<font color='#00ff00'>管理员账户输入正确．</font>");
                 }
             }
         }
         else
         {
            $(function(){
                $("#btUp").click(function(){
                     var $txtPwd1 = $("#txtPwd1");
                     var $txtPwd2 = $("#txtPwd2");
                     if ($txtPwd1.val() != $txtPwd2.val()) {
                         alert("新密码与确认新密码不相同！");
                         $txtPwd2.focus();
                         return false;
                     }
                    var $ddlRoleID=$("#ddlRoleID");
                     if ($ddlRoleID.val() == "0") {
                         alert("请选择所属角色！");
                         $ddlRoleID.focus();
                         return false;
                     }
                })
            })
         }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="Content">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="cell">
                <tr>
                    <td class="cell_group">
                        <img src="Images/ListIconTitle.jpg" alt="" />&nbsp;您的位置：<a href="ReviewList.aspx">评论管理</a><asp:Label ID="lbTitle" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
                     <table border="0" cellpadding="0" cellspacing="0" class="division">
                        <tr>
                            <th>
                                会员ID:</th>
                            <td>
                                <asp:Label ID="lbtxtUserID" runat="server"></asp:Label>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                评论主题:</th>
                            <td>
                            <asp:Label ID="lbReviewTitle" runat="server"></asp:Label>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                评论内容:</th>
                            <td><asp:Label ID="lbReviewContent" runat="server"></asp:Label>
                                </td>
                        </tr>
                          <tr>
                            <th>
                                回复:</th>
                            <td>
                                <asp:TextBox ID="txtLastReplyContent" runat="server" MaxLength="255" Rows="5" 
                                    TextMode="MultiLine" Width="455px" />
                                </td>
                        </tr>
                    </table>
            <div class="EditBtn">  
            <asp:Button ID="btUp" runat="server" Text="提交" OnClick="btUp_Click" />
                                <input type="button" value="取消" onclick="javascript:history.go(-1)" />
                                </div>
    </div>
    </form>
</body>
</html>
